<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
$this->load->view('logged_in/components/header', array('current_page'=>1));
?>

<!-- Main Wrapper -->

<div id="main-wrapper">
	<div class="container">

		<div class="row">

			<?php $this->load->view('logged_in/blog/left_panel',array('list_article'=>''));?>
			<div class="8u skel-cell-important">

				<!-- Content -->
				<div class="8u" style="margin: 0 auto;">
					<div  class="list-group">
						<?php
						foreach($articles as $article) {
							echo '<a class="articles list-group-item" href="'.base_url().'blog/article/'.$article['id'].'"><h4>'.$article['title'].'</h4></a>';
						}
						?>
					</div>
				</div>
				<div class="8u" style="margin: 0 auto; margin-top: 2em; text-align: center">
					<div class=" btn-group btn-group btn-group-lg">
						<?php echo $pagination?>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>




<?php
$this ->load->view('logged_in/components/footer');
?>
